package lab2;

public class FinalTwoIntegers {
    //加法器
    public int sum(int n, int m) {
        assert n >= 1 && n <= 99;
        assert m >= 1 && m <= 99;
        assert n + m >= 0 && n + m <= 99;
        return n + m;
    }

    //减法器
    public int diff(int n, int m) {
        assert n >= 1 && n <= 99;
        assert m >= 1 && m <= 99;
        assert n - m >= 0 && n - m <= 99;
        return n - m;
    }
}
